import request from '@/utils/request'

export function getTerminalConfigList(query) {//获取配置列表
  return request({
    url: '/api/v1/config',
    method: 'get',
    params: query
  })
}
export function updateTerminalConfig(form) {//增加配置信息
  return request({
    url: '/api/v1/config',
    method: 'patch',
    data: {"apiVersion":"v1","kind":"adinfosys","data":{"terminalBaseInfoVos":form}}
  })
}

export function deleteTerminalConfig(query) {//删除配置信息
  return request({
    url: '/search/user',
    method: 'get',
    params: query
  })
}

export function getSelectOptions(query) {//获取下拉框信息
  return request({
    url: '/api/v1/selectEntrys',
    method: 'get',
    params: {query}
  })
}
